<?php if (!defined('THINK_PATH')) exit();?><div class="bjui-pageContent">
    <form action="<?php echo U('save_commend');?>" data-callback="dialogFormCall" data-toggle="validate" data-alertmsg="false" class="dialogForm">
        <input type="hidden" name="id" value="<?php echo ($va["id"]); ?>"/>
        <div class="form-group">
            <label class="x100">名称:</label>
            <input type="text" name="name" value="<?php echo ($va["name"]); ?>" data-rule="required" />
        </div>
        <div class="form-group clearfix">
            <label class="x100 pull-left">类型图片:</label>
            <div class="pull-left parent_img">
                <?php if($va["photo"] != null): ?><img src="<?php echo ($va["photo"]); ?>" alt="LOGO" width="70" />
                <?php else: ?>
                <img src="http://www.bxd.com/Public/market/image/58008889b30bc.jpg" alt="LOGO" width="70" /><?php endif; ?>
                <input type="hidden" name="photo" value="<?php echo ($va["photo"]); ?>" />
                <span data-toggle="upload" 
                data-uploader="<?php echo U('Index/upload');?>"
                 data-file-type-exts="*.png;*.jpg"
                 data-icon="cloud-upload"
                 data-on-upload-success="upload_callback"
                 data-auto="true"
                 data-button-text="上传图片"
                ></span>
            </div>
        </div>
        <div class="form-group">
            <label class="x100">权重:</label>
            <input type="text" name="sort" value="<?php echo ($va["sort"]); ?>" data-toggle="spinner" data-min="0" data-step="1" data-rule="integer" class="w100"  />
        </div>
        <div class="form-group">
            <label class="x100">状态:</label>
             <input type="radio" name="status" value="0" id="brand_status1" data-toggle="icheck" data-label="显示"  <?php if($va["sort"] != '1'): ?>checked<?php endif; ?>  />
              <input type="radio" name="status" value="1" id="brand_status2" data-toggle="icheck" data-label="不显示" <?php if($va["sort"] == '1'): ?>checked<?php endif; ?>  />
        </div>
    </form>
</div>

<div class="bjui-pageFooter">
		
	<?php if(save == save): ?><ul>
			<li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
	<?php elseif(save == close): ?>
	    <ul>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
	<?php elseif(save == page and $show != null): ?>
		<ul>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
		    <div class="pages">
		        <span>每页&nbsp;</span>
		        <div class="selectPagesize">
		            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
		                <option value="<?php echo ($show['listrow']); ?>"><?php echo ($show['listrow']); ?></option>
		                <option value="60">60</option>
		                <option value="120">120</option>
		                <option value="150">150</option>
		            </select>
		        </div>
		        <span>&nbsp;条，共 <?php echo ($show['total']); ?> 条</span>
		    </div>
		    <div class="pagination-box" data-toggle="pagination" data-total="<?php echo ($show['total']); ?>" data-page-size="<?php echo ($show['listrow']); ?>" data-page-current="1">
		    </div>
	<?php elseif(save == page and $show == null): ?>
		<ul>
			<li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
		</ul>
	<?php else: ?>
		<ul>
			<li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
		</ul><?php endif; ?>

</div>